
import { HTTP } from '../utils/request';
const http = new HTTP();

// 随机获取商务经理
export function getBusinessManage(){
  return http.request({
    url: '/v1/applet/business/manage/random',
    method: 'get',
    data: {}
  })
}

// 获取推广佣金配置
export function getShareConfig(){
  return http.request({
    url: '/v1/applet/award/config/detail',
    method: 'get',
    data: {},
  })
}

// 获取合同列表数据
export function getContract(){
  return http.request({
    url: '/v1/applet/user/my/sign/contract',
    method: 'get',
    data: {}
  })
}

// 获取项目佣金合同签约链接
export function getProjectRewardContractUrl(laborCompanyId){
  return http.request({
    url: '/v1/applet/award/contract/sign/' + laborCompanyId,
    method: 'post',
    data: {}
  })
}

// 获取分享二维码
export function queryShareImg(scene){
  const envVersion = __wxConfig.envVersion || 'release';
  return http.request({
    url: '/v1/applet/user/unlimited',
    method: 'post',
    data: {
      'scene': scene,
      'page': '/pages/Tabbar/Home/Home',
      'envVersion': envVersion,
    }
  })
}